﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SEscortPlayer extends IMessageBase
    {
        public var escortToNpc:int;
        public var color:int;
        public var todayNum:int;
        public var todayColorMap:Dictionary;
        public var leftSeconds:int;
        public const _type:int = 19004;
        public static var _regist:SEscortPlayer = new SEscortPlayer(true);

        public function SEscortPlayer(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SEscortPlayer();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.escortToNpc);
            param1.writeInt(this.color);
            param1.writeInt(this.todayNum);
            DictIntIntHelper.write(param1, this.todayColorMap);
            param1.writeInt(this.leftSeconds);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.escortToNpc = param1.readInt();
            this.color = param1.readInt();
            this.todayNum = param1.readInt();
            this.todayColorMap = DictIntIntHelper.read(param1);
            this.leftSeconds = param1.readInt();
            return;
        }// end function

    }
}
